import { useAppSelector } from '@/modules/store';
import { Watermark } from 'tdesign-react';
export default function HISTWatermark() {
  // 从 redux 获取users信息
  const userInfo = useAppSelector((state) => state.user.data);
  const { studentId, name } = userInfo
  return (
    <Watermark
      watermarkContent={[
        { text: studentId + ' ' + name, fontColor: 'black' },
      ]}
      lineSpace={24}
      x={100}
      y={120}
      width={158}
      height={22}
      alpha={0.3}
    >
      <slot/>
    </Watermark>
  );
}
